package com.hs.srm.admin.common.notice;

import com.hs.srm.admin.modules.notice.entity.NoticeMessageEntity;
import com.hs.srm.admin.modules.notice.service.NoticeMessageService;
import com.hs.srm.common.utils.SpringContextUtils;

/**
 * @author clement
 * @description: 判断消息发送方式
 * @date: Create in 09:42 2018/7/6
 */
public class NoticeMethods {



    public static NoticeMessageEntity SendNotice(String TemplateCode){

        NoticeMessageService noticeMessageService = (NoticeMessageService) SpringContextUtils.getBean("noticeMessageService");
        NoticeMessageEntity noticeMessageEntity =  noticeMessageService.selectStateByTemplateCode(TemplateCode);
        return noticeMessageEntity;
    }
}
